package com.saicmotor.hk2.service;

import com.saicmotor.hk2.model.User;
import org.springframework.dao.DataRetrievalFailureException;

import java.util.List;

public interface UserService {
     int getAgeByName(String name);

     List<String>getNameByAge(int age);

     List<User>getAll();

     void insertUserInfo(String name,int age);

     void deleteByName(String name);

     void deleteByAge(int age);

     void updateAgeByName(String name,int age);

     void createUserTable(String tableName);
}
